<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>设置 - 小说转有声书APP</title>
    <link rel="stylesheet" href="css/style.css">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <style>
        .settings-group {
            margin-bottom: 2rem;
        }
        
        .settings-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
        }
        
        .settings-item:hover {
            background-color: var(--bg-secondary);
        }
        
        .settings-item:last-child {
            border-bottom: none;
        }
        
        .settings-icon {
            color: var(--primary-color);
            margin-right: 1rem;
        }
        
        .avatar-large {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background-color: var(--primary-color);
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 36px;
            font-weight: 500;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
        }
        
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--border-color);
            transition: .4s;
            border-radius: 24px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .slider {
            background-color: var(--primary-color);
        }
        
        input:checked + .slider:before {
            transform: translateX(26px);
        }
        
        .storage-bar {
            height: 8px;
            width: 100%;
            background-color: var(--bg-secondary);
            border-radius: 4px;
            overflow: hidden;
            margin: 0.5rem 0;
        }
        
        .storage-fill {
            height: 100%;
            background-color: var(--primary-color);
            width: 65%; /* 演示用，实际应根据存储使用情况动态设置 */
        }
        
        .subscription-card {
            border: 2px solid var(--primary-color);
            border-radius: 0.5rem;
            padding: 1rem;
            margin: 1rem 0;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .subscription-badge {
            position: absolute;
            top: 0;
            right: 0;
            background-color: var(--primary-color);
            color: white;
            padding: 0.25rem 1rem;
            transform: rotate(45deg) translate(25%, -50%);
            font-size: 0.75rem;
            font-weight: 500;
        }
        
        .subscription-price {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--primary-color);
            margin: 1rem 0;
        }
        
        .feature-list {
            text-align: left;
            margin: 1rem 0;
        }
        
        .feature-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }
        
        .feature-check {
            color: var(--primary-color);
        }
    </style>
</head>
<body>
    <!-- 顶部导航栏 -->
    <header class="navbar">
        <div class="flex items-center gap-2">
            <span class="icon">menu</span>
            <h1>设置</h1>
        </div>
        <div class="flex items-center gap-2">
            <span class="icon">help_outline</span>
        </div>
    </header>
    
    <div class="container" style="margin-bottom: 60px;">
        <!-- 用户账号信息 -->
        <div class="card">
            <div class="user-info">
                <div class="avatar-large">张</div>
                <div>
                    <h2>张三</h2>
                    <p>zhangsan@example.com</p>
                    <div class="badge my-2">标准会员</div>
                </div>
            </div>
            
            <div class="flex justify-center mt-4">
                <button class="btn btn-primary">编辑个人资料</button>
            </div>
        </div>
        
        <!-- 订阅管理 -->
        <div class="settings-group mt-4">
            <div class="card">
                <h3>订阅管理</h3>
                
                <div class="subscription-card">
                    <div class="subscription-badge">推荐</div>
                    <h4>标准会员</h4>
                    <div class="subscription-price">¥29/月</div>
                    <p>解锁高级功能，享受优质听书体验</p>
                    
                    <div class="feature-list">
                        <div class="feature-item">
                            <span class="material-icons feature-check">check_circle</span>
                            <span>更多高质量语音模型</span>
                        </div>
                        <div class="feature-item">
                            <span class="material-icons feature-check">check_circle</span>
                            <span>无限制的转换时长</span>
                        </div>
                        <div class="feature-item">
                            <span class="material-icons feature-check">check_circle</span>
                            <span>无广告体验</span>
                        </div>
                        <div class="feature-item">
                            <span class="material-icons feature-check">check_circle</span>
                            <span>5GB云存储空间</span>
                        </div>
                    </div>
                    
                    <button class="btn btn-primary w-full">当前订阅</button>
                </div>
                
                <div class="flex justify-between mt-4">
                    <button class="btn btn-secondary">管理订阅</button>
                    <button class="btn btn-secondary">查看更多套餐</button>
                </div>
            </div>
        </div>
        
        <!-- 偏好设置 -->
        <div class="settings-group mt-4">
            <div class="card">
                <h3>偏好设置</h3>
                
                <div class="settings-item">
                    <div class="flex items-center">
                        <span class="material-icons settings-icon">dark_mode</span>
                        <span>深色模式</span>
                    </div>
                    <label class="switch">
                        <input type="checkbox">
                        <span class="slider"></span>
                    </label>
                </div>
                
                <div class="settings-item">
                    <div class="flex items-center">
                        <span class="material-icons settings-icon">notifications</span>
                        <span>通知提醒</span>
                    </div>
                    <label class="switch">
                        <input type="checkbox" checked>
                        <span class="slider"></span>
                    </label>
                </div>
                
                <div class="settings-item">
                    <div class="flex items-center">
                        <span class="material-icons settings-icon">headphones</span>
                        <span>后台播放</span>
                    </div>
                    <label class="switch">
                        <input type="checkbox" checked>
                        <span class="slider"></span>
                    </label>
                </div>
                
                <div class="settings-item">
                    <div class="flex items-center">
                        <span class="material-icons settings-icon">save</span>
                        <span>自动保存进度</span>
                    </div>
                    <label class="switch">
                        <input type="checkbox" checked>
                        <span class="slider"></span>
                    </label>
                </div>
                
                <div class="settings-item">
                    <div class="flex items-center">
                        <span class="material-icons settings-icon">translate</span>
                        <span>语言</span>
                    </div>
                    <div class="flex items-center">
                        <span>简体中文</span>
                        <span class="material-icons">chevron_right</span>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 存储管理 -->
        <div class="settings-group mt-4">
            <div class="card">
                <h3>存储管理</h3>
                
                <div class="mt-4">
                    <div class="flex justify-between">
                        <span>已使用存储空间</span>
                        <span>3.25GB / 5GB</span>
                    </div>
                    <div class="storage-bar">
                        <div class="storage-fill"></div>
                    </div>
                </div>
                
                <div class="settings-item">
                    <div class="flex items-center">
                        <span class="material-icons settings-icon">menu_book</span>
                        <div>
                            <span>有声书</span>
                            <p class="text-secondary">2.1GB</p>
                        </div>
                    </div>
                    <span class="material-icons">chevron_right</span>
                </div>
                
                <div class="settings-item">
                    <div class="flex items-center">
                        <span class="material-icons settings-icon">description</span>
                        <div>
                            <span>小说文件</span>
                            <p class="text-secondary">0.8GB</p>
                        </div>
                    </div>
                    <span class="material-icons">chevron_right</span>
                </div>
                
                <div class="settings-item">
                    <div class="flex items-center">
                        <span class="material-icons settings-icon">settings_voice</span>
                        <div>
                            <span>声音模型</span>
                            <p class="text-secondary">0.35GB</p>
                        </div>
                    </div>
                    <span class="material-icons">chevron_right</span>
                </div>
                
                <div class="flex gap-2 mt-4">
                    <button class="btn btn-secondary w-full">
                        <span class="icon">cloud_download</span>
                        下载全部
                    </button>
                    <button class="btn btn-secondary w-full">
                        <span class="icon">delete</span>
                        清除缓存
                    </button>
                </div>
            </div>
        </div>
        
        <!-- 其他设置 -->
        <div class="settings-group mt-4">
            <div class="card">
                <div class="settings-item">
                    <div class="flex items-center">
                        <span class="material-icons settings-icon">feedback</span>
                        <span>意见反馈</span>
                    </div>
                    <span class="material-icons">chevron_right</span>
                </div>
                
                <div class="settings-item">
                    <div class="flex items-center">
                        <span class="material-icons settings-icon">info</span>
                        <span>关于我们</span>
                    </div>
                    <span class="material-icons">chevron_right</span>
                </div>
                
                <div class="settings-item">
                    <div class="flex items-center">
                        <span class="material-icons settings-icon">policy</span>
                        <span>隐私政策</span>
                    </div>
                    <span class="material-icons">chevron_right</span>
                </div>
            </div>
            
            <div class="flex justify-center mt-4">
                <button class="btn btn-secondary">
                    <span class="icon">logout</span>
                    退出登录
                </button>
            </div>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <nav class="bottom-nav">
        <a href="home.html" class="bottom-nav-item">
            <span class="material-icons bottom-nav-icon">home</span>
            <span>首页</span>
        </a>
        <a href="library.html" class="bottom-nav-item">
            <span class="material-icons bottom-nav-icon">library_books</span>
            <span>书库</span>
        </a>
        <a href="import.html" class="bottom-nav-item">
            <span class="material-icons bottom-nav-icon">add_circle</span>
            <span>导入</span>
        </a>
        <a href="player.html" class="bottom-nav-item">
            <span class="material-icons bottom-nav-icon">headphones</span>
            <span>播放</span>
        </a>
        <a href="settings.html" class="bottom-nav-item active">
            <span class="material-icons bottom-nav-icon">settings</span>
            <span>设置</span>
        </a>
    </nav>
</body>
</html> 